import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {
    path: '',
    loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  },
  { path: 'login', loadChildren: './pages/my/login/login.module#LoginPageModule' },
  { path: 'time-aty', loadChildren: './pages/activity/time-aty/time-aty.module#TimeAtyPageModule' },
  { path: 'sign-in', loadChildren: './pages/activity/sign-in/sign-in.module#SignInPageModule' },
  { path: 'raffle', loadChildren: './pages/activity/raffle/raffle.module#RafflePageModule' },
  { path: 'integral-shopping', loadChildren: './pages/activity/integral-shopping/integral-shopping.module#IntegralShoppingPageModule' },
  { path: 'setting', loadChildren: './pages/activity/setting/setting.module#SettingPageModule' },
  { path: 'info', loadChildren: './pages/my/info/info.module#InfoPageModule' },
  { path: 'connect', loadChildren: './pages/my/connect/connect.module#ConnectPageModule' },
  { path: 'address', loadChildren: './pages/my/address/address.module#AddressPageModule' },
  { path: 'address-edit', loadChildren: './pages/my/address-edit/address-edit.module#AddressEditPageModule' },
  { path: 'account-info', loadChildren: './pages/my/account-info/account-info.module#AccountInfoPageModule' },
  { path: 'updata-password', loadChildren: './pages/my/updata-password/updata-password.module#UpdataPasswordPageModule' },
  { path: 'payment-type', loadChildren: './pages/my/payment-type/payment-type.module#PaymentTypePageModule' },
  { path: 'about-us', loadChildren: './pages/my/about-us/about-us.module#AboutUsPageModule' },
  { path: 'complain-list', loadChildren: './pages/activity/complain-list/complain-list.module#ComplainListPageModule' },
  { path: 'complain-add', loadChildren: './pages/activity/complain-add/complain-add.module#ComplainAddPageModule' },
  { path: 'discount', loadChildren: './pages/activity/discount/discount.module#DiscountPageModule' },
  { path: 'order-list', loadChildren: './pages/order/order-list/order-list.module#OrderListPageModule' },
  { path: 'updata-info', loadChildren: './pages/my/updata-info/updata-info.module#UpdataInfoPageModule' },
  { path: 'goods-search-list', loadChildren: './pages/goods/goods-search-list/goods-search-list.module#GoodsSearchListPageModule' },
  { path: 'goods-details', loadChildren: './pages/goods/goods-details/goods-details.module#GoodsDetailsPageModule' },
  { path: 'goods-filtrate', loadChildren: './pages/goods/goods-filtrate/goods-filtrate.module#GoodsFiltratePageModule' },
  { path: 'order-confirm', loadChildren: './pages/order/order-confirm/order-confirm.module#OrderConfirmPageModule' },
  { path: 'goods-search', loadChildren: './pages/goods/goods-search/goods-search.module#GoodsSearchPageModule' },
  { path: 'friends-share', loadChildren: './pages/my/friends-share/friends-share.module#FriendsSharePageModule' },
  { path: 'order-create', loadChildren: './pages/order/order-create/order-create.module#OrderCreatePageModule' },
  { path: 'register', loadChildren: './pages/my/register/register.module#RegisterPageModule' },
  { path: 'forget-password', loadChildren: './pages/my/forget-password/forget-password.module#ForgetPasswordPageModule' },
  { path: 'pay-status', loadChildren: './pages/order/pay-status/pay-status.module#PayStatusPageModule' },
  { path: 'faq', loadChildren: './pages/my/faq/faq.module#FaqPageModule' },
  { path: 'goods-size', loadChildren: './pages/goods/goods-size/goods-size.module#GoodsSizePageModule' },
  { path: 'my-message', loadChildren: './pages/my/my-message/my-message.module#MyMessagePageModule' },
  { path: 'system-message', loadChildren: './pages/my/system-message/system-message.module#SystemMessagePageModule' },
  { path: 'payment-add-card', loadChildren: './pages/my/payment-add-card/payment-add-card.module#PaymentAddCardPageModule' },
  { path: 'collect-list', loadChildren: './pages/my/collect-list/collect-list.module#CollectListPageModule' },
  { path: 'ttkefu', loadChildren: './pages/my/ttkefu/ttkefu.module#TtkefuPageModule' },
  { path: 'company-profile', loadChildren: './pages/my/company-profile/company-profile.module#CompanyProfilePageModule' },
  { path: 'order-comment', loadChildren: './pages/order/order-comment/order-comment.module#OrderCommentPageModule' },
  { path: 'logistics', loadChildren: './pages/order/logistics/logistics.module#LogisticsPageModule' }
];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
